Optimal. Leaf size=35 \[ -\frac {1}{2 a x^2}-\frac {b \log (x)}{a^2}+\frac {b \log \left (a+b x^2\right )}{2 a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1598, 272, 46}
\begin {gather*} \frac {b \log \left (a+b x^2\right )}{2 a^2}-\frac {b \log (x)}{a^2}-\frac {1}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 272
Rule 1598
Rubi steps
\begin {align*} \int \frac {1}{x^2 \left (a x+b x^3\right )} \, dx &=\int \frac {1}{x^3 \left (a+b x^2\right )} \, dx\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{x^2 (a+b x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {1}{a x^2}-\frac {b}{a^2 x}+\frac {b^2}{a^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {1}{2 a x^2}-\frac {b \log (x)}{a^2}+\frac {b \log \left (a+b x^2\right )}{2 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 35, normalized size = 1.00 \begin {gather*} -\frac {1}{2 a x^2}-\frac {b \log (x)}{a^2}+\frac {b \log \left (a+b x^2\right )}{2 a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.35, size = 32, normalized size = 0.91
method | result | size |
default | \(-\frac {1}{2 a \,x^{2}}-\frac {b \ln \left (x \right )}{a^{2}}+\frac {b \ln \left (b \,x^{2}+a \right )}{2 a^{2}}\) | \(32\) |
norman | \(-\frac {1}{2 a \,x^{2}}-\frac {b \ln \left (x \right )}{a^{2}}+\frac {b \ln \left (b \,x^{2}+a \right )}{2 a^{2}}\) | \(32\) |
risch | \(-\frac {1}{2 a \,x^{2}}-\frac {b \ln \left (x \right )}{a^{2}}+\frac {b \ln \left (-b \,x^{2}-a \right )}{2 a^{2}}\) | \(35\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 31, normalized size = 0.89 \begin {gather*} \frac {b \log \left (b x^{2} + a\right )}{2 \, a^{2}} - \frac {b \log \left (x\right )}{a^{2}} - \frac {1}{2 \, a x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.67, size = 33, normalized size = 0.94 \begin {gather*} \frac {b x^{2} \log \left (b x^{2} + a\right ) - 2 \, b x^{2} \log \left (x\right ) - a}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 31, normalized size = 0.89 \begin {gather*} - \frac {1}{2 a x^{2}} - \frac {b \log {\left (x \right )}}{a^{2}} + \frac {b \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.36, size = 43, normalized size = 1.23 \begin {gather*} -\frac {b \log \left (x^{2}\right )}{2 \, a^{2}} + \frac {b \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a^{2}} + \frac {b x^{2} - a}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 31, normalized size = 0.89 \begin {gather*} \frac {b\,\ln \left (b\,x^2+a\right )}{2\,a^2}-\frac {1}{2\,a\,x^2}-\frac {b\,\ln \left (x\right )}{a^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________